﻿@using RielAp.Translation;
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>@ViewBag.Title - @Translation.MainTitleAddition</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    @Scripts.Render("~/bundles/mainjs")
    @Styles.Render("~/Content/css")

    @RenderSection("scripts", required: false)
    @RenderSection("styles", required: false)
    

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
          <script src="../assets/js/html5shiv.js"></script>
    <![endif]-->

</head>

<body>
    <div class="navbar navbar-inverse">
        <div class="navbar-inner">
            <div class="container-fluid">

                <a class="brand" href="/"><img src="~/Content/images/home.png" style="height: 26px; margin-right: 10px;"/><span>@Translation.WebsiteTitle</span></a>
                <div class="nav-collapse collapse">
                    <div class="navbar-text pull-right">
                        @Html.Partial("_LoginPartial")
                    </div>
                    <ul class="nav">
                        <li class="@(ViewBag.CurrentPage == NavigationPage.Main? "active" : "")">
                                <a href="@Url.Action("Index", "Main")">@Translation.LayoutNavigationMain</a>
                            </li>

                        <li class="@(ViewBag.CurrentPage == NavigationPage.Apartments? "active" : "")">
                                <a href="@Url.Action("Apartments", "Announcements", new {type=ViewBag.Type, order=ViewBag.OrderType, viewtype = ViewBag.ViewType })">@Translation.LayoutNavigationApartments</a>
                            </li>
                            
                        <li class="@(ViewBag.CurrentPage == NavigationPage.Lands? "active" : "")">
                            <a href="@Url.Action("Lands", "Announcements", new {type=ViewBag.Type, order=ViewBag.OrderType, viewtype = ViewBag.ViewType })">@Translation.LayoutNavigationLands</a>
                        </li>
                        <li class="@(ViewBag.CurrentPage == NavigationPage.Houses? "active" : "")">
                            <a href="@Url.Action("Houses", "Announcements", new {type=ViewBag.Type, order=ViewBag.OrderType, viewtype = ViewBag.ViewType })">@Translation.LayoutNavigationHouses</a>
                        </li>
                        
                        <li class="@(ViewBag.CurrentPage == NavigationPage.Notices? "active" : "")">
                            <a href="@Url.Action("Index", "Notes")">@Translation.NotesIndexTitle</a>
                        </li>

                        @if(User.Identity.IsAuthenticated){
                            <li class="@(ViewBag.CurrentPage == NavigationPage.Cabinet? "active" : "")">
                                <a href="@Url.Action("Announcements", "Cabinet", new { phone=User.Identity.Name})">@Translation.CabinetTitlePage</a>
                            </li>
                        }
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <div class="container-fluid">
        <div class="row-fluid" style="display: none;" id="info">
            <div class="alert alert-info" style="margin: 0px 0px 10px 0px;">
                <button type="button" id="infoclose" class="close" data-dismiss="alert">&times;</button>
                @Html.Raw(string.Format(RielAp.Translation.Translation.WelcomeMassage, 30, Url.Action("Register", "Account"), System.Configuration.ConfigurationManager.AppSettings["ShareTillDate"]))
            </div>
        </div>
        @RenderBody()
        
    </div>
    
    <script type="text/javascript">
        $(document).ready(function () {
            var ic = Cookie.getCookie("showInfo");
            if (ic != "false") {
                $('#info').show();
            }

            $("#info").click(function () {
                var c = new Cookie("showInfo", false);
                Cookie.setCookie(c);
            });
        });
    </script>
    
    <footer>
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span4">
                    <p>©Aparts Com 2013</p>
                    <p>@Translation.WebsiteMobileNumber : <strong>@System.Configuration.ConfigurationManager.AppSettings["ContactNumbers"]</strong></p>
                    <p>@Translation.WebsiteEmailAddress : <strong>@System.Configuration.ConfigurationManager.AppSettings["EmailAddress"]</strong></p>
                </div>
                <div class="span3">
                    <div>
                        <a href="@Url.Action("Index", "Feedback")">@Translation.FeedbacksWebsiteTitle</a>
                    </div>
                    
                </div>
                <div class="span3">
                    <div>
                        <a href="@Url.Action("License", "Account")">@Translation.LicenseTitle</a>
                    </div>

                </div>
                <div class="span2">
                                       <!-- Yandex.Metrika informer -->
<a href="http://metrika.yandex.ua/stat/?id=22273732&amp;from=informer"
target="_blank" rel="nofollow"><img src="//bs.yandex.ru/informer/22273732/3_0_FFFFFFFF_FFFFFFFF_0_pageviews"
style="width:88px; height:31px; border:0;" alt="Яндекс.Метрика" title="Яндекс.Метрика: дані за сьогодні  (перегляди, візити та унікальні відвідувачі)" /></a>
<!-- /Yandex.Metrika informer -->

<!-- Yandex.Metrika counter -->
<script type="text/javascript">
    (function (d, w, c) {
        (w[c] = w[c] || []).push(function () {
            try {
                w.yaCounter22273732 = new Ya.Metrika({
                    id: 22273732,
                    webvisor: true,
                    clickmap: true,
                    trackLinks: true,
                    accurateTrackBounce: true
                });
            } catch (e) { }
        });

        var n = d.getElementsByTagName("script")[0],
            s = d.createElement("script"),
            f = function () { n.parentNode.insertBefore(s, n); };
        s.type = "text/javascript";
        s.async = true;
        s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";

        if (w.opera == "[object Opera]") {
            d.addEventListener("DOMContentLoaded", f, false);
        } else { f(); }
    })(document, window, "yandex_metrika_callbacks");
</script>
<noscript><div><img src="//mc.yandex.ru/watch/22273732" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
                    <!-- I.UA counter --><a href="http://www.i.ua/" target="_blank" onclick="this.href='http://i.ua/r.php?169280';" title="Rated by I.UA">
<script type="text/javascript" language="javascript"><!--
    iS = '<img src="http://r.i.ua/s?u169280&p62&n' + Math.random();
    iD = document; if (!iD.cookie) iD.cookie = "b=b; path=/"; if (iD.cookie) iS += '&c1';
    iS += '&d' + (screen.colorDepth ? screen.colorDepth : screen.pixelDepth)
    + "&w" + screen.width + '&h' + screen.height;
    iT = iD.referrer.slice(7); iH = window.location.href.slice(7);
    ((iI = iT.indexOf('/')) != -1) ? (iT = iT.substring(0, iI)) : (iI = iT.length);
    if (iT != iH.substring(0, iI)) iS += '&f' + escape(iD.referrer.slice(7));
    iS += '&r' + escape(iH);
    iD.write(iS + '" border="0" width="88" height="31" />');
    //--></script></a><!-- End of I.UA counter -->
                </div>
                
            </div>
            </div>
        </footer>
    <script>
        (function (i, s, o, g, r, a, m) {
            i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
                (i[r].q = i[r].q || []).push(arguments)
            }, i[r].l = 1 * new Date(); a = s.createElement(o),
            m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
        })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

        ga('create', 'UA-43924654-1', 'aparts.in.ua');
        ga('send', 'pageview');

</script>
</body>
</html>
